import request from '@/utils/request'

// 查询设备心跳配置池列表
export function listPlatformDeviceHeartbeatPool(query) {
  return request({
    url: '/genius/platform-device-heartbeat-pool/list',
    method: 'get',
    params: query
  })
}

// 查询设备心跳配置池详细
export function getPlatformDeviceHeartbeatPool(id) {
  return request({
    url: '/genius/platform-device-heartbeat-pool/' + id,
    method: 'get'
  })
}

// 新增设备心跳配置池
export function addPlatformDeviceHeartbeatPool(data) {
  return request({
    url: '/genius/platform-device-heartbeat-pool',
    method: 'post',
    data: data
  })
}

// 修改设备心跳配置池
export function updatePlatformDeviceHeartbeatPool(data) {
  return request({
    url: '/genius/platform-device-heartbeat-pool',
    method: 'put',
    data: data
  })
}

// 删除设备心跳配置池
export function delPlatformDeviceHeartbeatPool(id) {
  return request({
    url: '/genius/platform-device-heartbeat-pool/' + id,
    method: 'delete'
  })
}

// 逻辑删除设备心跳配置池
export function removedPlatformDeviceHeartbeatPool(id) {
  return request({
    url: '/genius/platform-device-heartbeat-pool/' + id,
    method: 'delete'
  })
}
